package com.jtdemo.stq.demo.dao;

import com.jtdemo.stq.demo.entity.Person;

import java.util.List;

public interface PersonDao {

    //查询人根据姓名
    public List<Person> listPersonByName(int page,String name);

    //删除人
    public  int deletePeopleById(Integer id);

    //修改人
    public  int updatePeopleById(Person person);

    //添加人
    public  int addPerson(Person person);

    //分页
    public List<Person> listPersonbyCurrentPage(int currentPage);

    //查询总人数
    public int countPerson();
}
